import random
#随机产生双色球号
input()
def Red(number,start,end):
    a = []
    while True:
        a.append(random.randint(start,end))
        if len(a) == number:
            break
    return a[0]
def Blue(number,start,end):
    a = []
    while True:
        a.append(random.randint(start,end))
        if len(a) == number:
            break
    return a[0]
print("红色球")
for i in range(1,7):
    print(Red(1,1,34)),
print("蓝色球：")
print(Blue(1,1,16))